#ifndef LOGIN_REGISTER_UI_H
#define LOGIN_REGISTER_UI_H

#include <QFormLayout>
#include <QGridLayout>
#include <QLineEdit>
#include <QPushButton>
#include <QVBoxLayout>
#include <QWidget>
#include "ip_port.h"

class LoginRegisterUi : public QWidget
{
    Q_OBJECT

public:
    explicit LoginRegisterUi(QWidget *parent = nullptr);

    // 登录界面控件
    QLineEdit *usernameEdit;
    QLineEdit *passwordEdit;
    QPushButton *loginButton;
    QPushButton *registerButton;
    QPushButton *forgotPasswordButton;

private:
    void setupLoginUi(); // 用于创建和布局登录界面
};

#endif // LOGIN_REGISTER_UI_H
